package la.gs;

import java.util.regex.Pattern;

public class GSParserPatterns {
	public final Pattern record;

	public final Pattern header;
	
	public final Pattern link;
	
	public final Pattern desc;
	
	public final Pattern totalResultRecQty;
	
	public GSParserPatterns() {
		int flag = Pattern.CASE_INSENSITIVE | Pattern.MULTILINE;
		record = Pattern.compile("<DIV.+?class=g.+?>(.+?)</DIV>", flag);
		header = Pattern.compile("<H2 class=r>(.+?)</H2>", flag);
//		<A class=l href="(.+?)"
		link = Pattern.compile( "<A class=l href=\"(.+?)\".*?>(.+?)</A>", flag);
		desc = Pattern.compile("<TD class=j.*?>(.+?)</TD>", flag);
		totalResultRecQty = Pattern.compile( "of about <b>([\\d,]+)</b> for", flag );
	}
	
	
	
}
